package com.chainyoung.common.appcommon.db;

import com.chainyoung.common.appcommon.entity.HdWalletTokenCache;

import io.realm.Realm;
import io.realm.RealmConfiguration;

public class DbDefaultConfiguration {


    private static RealmConfiguration realmConfiguration = new RealmConfiguration.Builder()
            .name(DbConstant.DB_NAME)
            .schemaVersion(DbConstant.DB_VERSION)
            .migration(new DbMigrationFirst())
            .modules(Realm.getDefaultModule(), new DbRelamModule())
            .build();

    public static RealmConfiguration getInstance() {
        return realmConfiguration;
    }

}
